const { app, BrowserWindow, Menu } = require('electron')

function createWindow () {   
  // 创建浏览器窗口
  let win = new BrowserWindow({
    width: 1440,
    height: 1000,
    webPreferences: {
      nodeIntegration: true
    }
  });

  //隐藏菜单栏
  Menu.setApplicationMenu(null);

  // 加载index.html文件
  win.loadFile('index.html');
}

app.on('ready', createWindow);